package com.sbtr.common.auto;

import lombok.Data;

/**
 * @program: dgl
 * @description
 * @author: black
 * @create: 2020-03-20 17:47
 **/
@Data
public class GennerateCodeDTO {

    private String url = "jdbc:mysql://172.16.60.7:3306/aiplaform_new?useSSL=false&createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC";
//    private String url = "jdbc:mysql://10.21.31.45:30056/aiplaform_new?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&autoReconnect=true&failOverReadOnly=false&serverTimezone=UTC&useSSL=false";

    private String username="root";
//    private String username="aiplaform";

    private String password="123456";
//    private String password="aiplaform@123";

    private String parentDir = "com.sbtr.business";

    private boolean usePrefix=true;

    private String[] tableNames;

    private String outputDir;

    private String mapperDir;

    private String author;

    private String modelName;

    private String[] tablePrefix;

    private String artifactId;

    private String terminal;



    public GennerateCodeDTO(String[] tableNames, String author, String modelName, String terminal,String[] tablePrefix) {
        this.tableNames = tableNames;
        this.outputDir = "/src/main/java";
        this.mapperDir = "/src/main/resources/mapper/xml";
        this.author = author;
        this.modelName = modelName;
        this.terminal= terminal;
        this.tablePrefix=tablePrefix;
    }

}
